<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JHU Bookstore</title>

<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
	function toggleDiv(divId) {
		$("#" + divId).toggle();
	}

	function showonlyone(thechosenone) {
		$('div[name|="category"]').each(function(index) {
			if ($(this).attr("id") == thechosenone) {
				$(this).show(150);
			} else {
				$(this).hide(150);
			}
		});
	}
</script>

<script src="js/layout.js" type="text/javascript"> </script>
<link rel="stylesheet" type="text/css" href="css/layout.css" />

</head>





<body>

	<div id="maincontainer">

		<div id="topsection">
			<div class="innertube">
				<h1>JHU Bookstore</h1>

				<div id="menu">
					<a href="">Login</a> |
					<a href="viewCart">View Cart</a>
				</div>
			</div>
		</div>

		<div id="contentwrapper">
			<div id="contentcolumn">
				<div class="innertube">

					<div name="category" id="classics">
						<table>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>
							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
						</table>
					</div>


					<div name="category" id="fiction" style="display: none;">
						<table>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>
							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
						</table>
					</div>


					<div name="category" id="nonfiction" style="display: none;">
						<table>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>
							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
						</table>
					</div>

					<div name="category" id="cooking" style="display: none;">
						<table>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>
							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
						</table>
					</div>

					<div name="category" id="adventure" style="display: none;">
						<table>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>
							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
							<tr>
								<td>Img</td>
								<td>Name</td>
								<td>Price</td>
								<td>
									<form action="addToCart" method="post">
										<input type="hidden" name="productId" value="${product.id}">
										<input type="submit" value="Add to Cart" />
									</form>
								</td>

							</tr>
						</table>
					</div>


				</div>
			</div>
		</div>

		<div id="leftcolumn">
			<div class="innertube">
				<ul>
					<li><a href="javascript:showonlyone('classics');">Classics</a>
					<li><a href="javascript:showonlyone('fiction');">Fiction</a>
					<li><a href="javascript:showonlyone('nonfiction');">Non-Fiction</a>
					<li><a href="javascript:showonlyone('cooking');">Cooking</a>
					<li><a href="javascript:showonlyone('adventure');">Adventure</a>
				</ul>
			</div>
		</div>

		<div id="footer">The best bookstore ever!</div>

	</div>

</body>

</html>